package org.xq.shop.maxaishop.entity;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.ToString;
import org.springframework.security.core.GrantedAuthority;

import java.io.Serializable;

/**
 * 角色表(XqRole)实体类
 *
 * @author admin
 * @since 2021-06-16 00:30:06
 */
@ApiModel("角色对象")
@Data
@ToString
public class XqRole implements Serializable , GrantedAuthority {
    private static final long serialVersionUID = 161629129179504979L;
    
    private Integer roleId;
    
    private String roleName;


    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    @Override
    public String getAuthority() {
        return roleName;
    }
}